<?php
/**
 * Created by PhpStorm.
 * User: Duck
 * Create time: 2016/12/21 9:56
 */

namespace D\Controller;
use Think\Controller;

class IndexController extends Controller{
    public function _initialize(){
        session('[start]');
        $where =array(
            'lock'=>'0',
        );
        $menus=M('menus')->where($where)->order('mgroup asc,up asc,msort desc')->select();
        $this->assign('menus',$menus);
    }//菜单
    public function index(){
        $this->display();
    }//首页
    public function jurisdiction(){

        $this->display();
    }//无权限
    public function success(){
        $a=I('get.url');
        $this->assign('url',$a);
        $this->display;
    }//成功
    public function defeat(){
        $a=I('get.url');
        $this->assign('url',$a);
        $this->display;
    }//失败
    public function errorLogin(){
        $this->display();
    }//登录失败
}